package com.example.system.mapper;


import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.example.system.domain.Item;
import com.example.system.domain.bo.ItemBo;
import com.example.system.domain.model.ProjectKindInfo;
import com.example.system.domain.vo.ProjectVo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 项目日志(SysItem)表数据库访问层
 */
@Mapper
public interface ItemMapper extends BaseMapper<Item> {

    List<Item> selectAllItem();

    List<ProjectVo> getListByYear(@Param("year") String year);

    ProjectKindInfo selectProjectByYear(@Param("year") String year);

    int getLastId();

    void updateItemBo(@Param("item") ItemBo itemBo);

    void insertItemList(@Param("list") List<Item> itemList);

    void insertItem(Item item);
}

